Fix hint computation again.
authorOwen Taylor <otaylor@redhat.com>
Mon, 28 Jan 2002 20:36:38 +0000 (20:36 +0000)
committerOwen Taylor <otaylor@src.gnome.org>
Mon, 28 Jan 2002 20:36:38 +0000 (20:36 +0000)
Mon Jan 28 15:34:43 2002  Owen Taylor  <otaylor@redhat.com>

* pixbuf-render.c (compute_hint): Fix hint computation
again.

modules/engines/pixbuf/ChangeLog
modules/engines/pixbuf/pixbuf-render.c

index d98ef9689e1f65718f6eac4c0b2682705ea0165a..751dfdb9a4c0e433ec4b83bf67e5f5d967359aca 100644 (file)
@@ -1,3 +1,8 @@
+Mon Jan 28 15:34:43 2002  Owen Taylor  <otaylor@redhat.com>
+
+       * pixbuf-render.c (compute_hint): Fix hint computation
+       again.
+
 Mon Jan 28 12:17:07 2002  Owen Taylor  <otaylor@redhat.com>
 
        * pixbuf-render.c (compute_hint): Fix problems in computing
index 8d4f41fc5b02ad6f82e76db66b263d349f20631d..a0dccdf1708d62353ccf51bdf6a55116027a5f90 100644 (file)
@@ -336,13 +336,13 @@ compute_hint (GdkPixbuf *pixbuf,
   for (i = y0; i < y1; i++)
     {
       guchar *p = data + i * rowstride + x0 * n_channels;
-      guchar r = *(p++);
-      guchar g = *(p++);
-      guchar b = *(p++);
+      guchar r = p[0];
+      guchar g = p[1];
+      guchar b = p[2];
       guchar a = 0;
       
       if (n_channels == 4)
-       a = *(p++);
+       a = p[3];
 
       for (j = x0; j < x1 ; j++)
        {